﻿@model IEnumerable<WebGioiThieu.Models.Tour>
@{

    var page = (int)ViewData["page"];
    var total = (int)ViewData["total"]; 
}

@foreach (var item in Model)
{
    <div class="item">
        <img src="@WebGioiThieu.AppConstants.Appconstant.ImagePath@item.HinhAnh" />
        <div class="content">
            <h2>@Html.ActionLink(@item.TieuDe, "Details", "Tour", new { id = @item.ID },null)</h2><br />
            @item.PhanModau<br />
            @item.NgayCapNhat<br />
        </div>
        <div class="clear"></div>
    </div>
}
<div id="paging">

    @if (page > 1)
    {

        <a href="#" onclick="javascript:OnCriteria(@(page - 1), false);"><span>
            <img src="/Content/images/prev.png" /></span></a>

    }
    &nbsp;Trang
    &nbsp;@ViewData["page"]

    /

    @total

    &nbsp;

    @if (page < total)
    {

        <a href="#" onclick="javascript:OnCriteria(@(page + 1), false);">
            <img src="../../Content/images/next.png" /></a>

    }

</div>
